package org.geometerplus.fbreader.filetype;

import org.geometerplus.zlibrary.core.filesystem.ZL17KPlainTxtFile;
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
import org.geometerplus.zlibrary.core.util.MimeType;

public class FileType17KTxtNovel extends FileType {

	public static final String FileMode = "17kTN://";
	protected FileType17KTxtNovel() {
		super(ZL17KPlainTxtFile.ExtentionName);
		
	}

	@Override
	public boolean acceptsFile(ZLFile file) {
		final String extension = file.getExtension();
		return
				ZL17KPlainTxtFile.ExtentionName.equalsIgnoreCase(extension) ||
			ZL17KPlainTxtFile.DirectoryExtentionName.equalsIgnoreCase(extension);
		
	}

	@Override
	public String extension() {
		// TODO Auto-generated method stub
		return ZL17KPlainTxtFile.ExtentionName;
	}

	@Override
	public MimeType mimeType() {
		// TODO Auto-generated method stub
		return null;
	}

}
